Package com.cisco.pt.ipc.sim.impl
Class OSPFRoutingEntryImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.RoutingEntryImpl
com.cisco.pt.ipc.sim.impl.OSPFRoutingEntryImpl
- All Implemented Interfaces:
IPCData,OSPFRoutingEntry,RoutingEntry
-
Field Summary
FieldsFields inherited from class com.cisco.pt.ipc.sim.impl.RoutingEntryImpl
adminDistance, metric, networkId, nextHop, portName, subnetMask, typeOfProtocol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetAdvRoute(IPAddress advRoute) voidsetRealCost(int realCost) Methods inherited from class com.cisco.pt.ipc.sim.impl.RoutingEntryImpl
getAdminDistance, getMetric, getNetworkId, getNextHop, getPortName, getSubnetMask, getTypeOfProtocol, setAdminDistance, setMetric, setNetworkId, setNextHop, setPortName, setSubnetMask, setTypeOfProtocolMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.RoutingEntry
getAdminDistance, getMetric, getNetworkId, getNextHop, getPortName, getSubnetMask, getTypeOfProtocol, setAdminDistance, setMetric, setNetworkId, setNextHop, setPortName, setSubnetMask, setTypeOfProtocol
-
Field Details
-
realCost
protected int realCost -
advRoute
-
-
Constructor Details
-
OSPFRoutingEntryImpl
public OSPFRoutingEntryImpl()
-
-
Method Details
-
getRealCost
public int getRealCost()- Specified by:
getRealCostin interfaceOSPFRoutingEntry- Returns:
- int Returns a int
-
setRealCost
public void setRealCost(int realCost) - Specified by:
setRealCostin interfaceOSPFRoutingEntry- Parameters:
realCost- Takes in a parameter of realCost
-
getAdvRoute
- Specified by:
getAdvRoutein interfaceOSPFRoutingEntry- Returns:
- IPAddress Returns a IPAddress
-
setAdvRoute
- Specified by:
setAdvRoutein interfaceOSPFRoutingEntry- Parameters:
advRoute- Takes in a parameter of advRoute
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classRoutingEntryImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-